import QtQuick 2.0

Button {
    property string icon

    implicitWidth: implicitHeight

    Image {
        id: image
        source: `qrc:/icons/${icon}.png`
        fillMode: Image.PreserveAspectFit
        anchors.fill: parent
        anchors.margins: parent.width / 8
    }
}
